package com.sugar.queryinfo.module.business.api.userextend;

import com.sugar.queryinfo.module.business.service.userextend.UserExtendService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.validation.constraints.NotNull;

@Service
public class UserExtendApiImpl implements UserExtendApi {

    @Resource
    private UserExtendService userExtendService;

    @Override
    public void createUserExtend(@NotNull(message = "用户ID不能为空") Long userId) {
        userExtendService.createUserExtend(userId);
    }

    @Override
    public void deleteUserExtend(Long userId) {
        userExtendService.deleteUserExtend(userId);
    }
}
